package cn.jlearn.proxy.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author qianyingchao
 * @version 1.0
 * @date 2021/7/16 12:13 下午
 */
@Getter
@Setter
@TableName("t_front_tunnel")
public class Tunnel implements Serializable {

    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.AUTO)
    private BigInteger id;

    @TableField(value = "uid")
    private String uid;

    /**
     * {@link cn.jlearn.proxy.web.enums.TunnelTypeEnum}
     */
    @TableField(value = "type")
    private String type;

    @TableField(value = "token")
    private String token;

    @TableField(value = "name")
    private String name;

    @TableField(value = "domain")
    private String domain;

    /**
     * {@link cn.jlearn.proxy.web.enums.TunnelProtocolEnum}
     */
    @TableField(value = "protocol")
    private String protocol;

    @TableField(value = "local_host")
    private String localHost;

    @TableField(value = "local_port")
    private Integer localPort;

    @TableField(value = "online")
    private String online;

    @TableField(value = "del")
    private String del;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

}
